<template>
	<view class="shop_home_query_box">
		<image src="/static/img-bgc-shop.png" mode="" class="query_img"></image>
		<view class="query_box">
			<view class="query_search_box">
				<view class="search_img_box">
					<image src="/static/img-search.png" mode="" class="search_img"></image>
				</view>
				<view class="search_title">
					订单查询
				</view>
			</view>

			<view class="search_input_box">
				<u-input v-model="searchValue" :border="false" :clearable="false" maxlength="11"
					placeholder="请输入收货人手机号" />
			</view>

			<view class="search_btn" @click="handlerQuery">
				查询
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchValue: '',
			}
		},
		methods: {
			// 查询
			handlerQuery() {
				if (this.searchValue == '') {
					uni.showToast({
						title: '请输入收货人手机号',
						icon: 'none'
					})
					return
				}
				// this.getOrderDetail()
				uni.navigateTo({
					url: '/pages/queryOrder/queryDetail?number=' + encodeURIComponent(JSON.stringify(this
						.searchValue))
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.shop_home_query_box {
		position: relative;

		.query_img {
			position: fixed;
			width: 100%;
			height: 100%;
			top: 0;
			left: 0;
		}

		.query_box {
			position: absolute;
			top: 97rpx;
			left: 50%;
			transform: translateX(-50%);
			display: flex;
			flex-direction: column;
			align-items: center;

			.query_search_box {
				display: flex;
				align-items: center;

				.search_img_box {
					width: 50rpx;
					height: 50rpx;
					margin-right: 29rpx;

					.search_img {
						width: 100%;
						height: 100%;
					}
				}

				.search_title {
					font-size: 52rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #FFFFFF;
				}
			}

			.search_input_box {
				width: 538rpx;
				height: 77rpx;
				background: #fff;
				border-radius: 38rpx;
				padding-left: 34rpx;
				margin: 77rpx 0 53rpx;
			}

			.search_btn {
				width: 538rpx;
				height: 77rpx;
				background: #4A8AFF;
				box-shadow: 0px 0px 3rpx 0px #FFFFFF;
				border-radius: 38rpx;
				font-size: 30rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				text-align: center;
				line-height: 77rpx;
			}
		}
	}
</style>